Skip to content

feat: add ai-gateway-cost-control experiment flag#26399

Merged
ssncferreira merged 3 commits into
mainfrom
ssncferreira/ai-gateway-cost-control-experiment
Jun 16, 2026
Merged

feat: add ai-gateway-cost-control experiment flag#26399
ssncferreira merged 3 commits into
mainfrom
ssncferreira/ai-gateway-cost-control-experiment

Conversation

@ssncferreira

@ssncferreira ssncferreira commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Adds the ai-gateway-cost-control experiment flag to gate new cost control endpoints and upcoming frontend UI behind an explicit opt-in.

Currently AI Gateway cost control supports the following endpoints:

  • GET/PUT/DELETE /api/v2/organizations/{org}/groups/{group}/ai/budget
  • GET/PUT/DELETE /api/v2/users/{user}/ai/budget

Note: the group-level endpoints were already released in v2.34.0 and remain ungated. Only the user-level endpoints are gated behind this experiment. Future cost control endpoints and UI should use this experiment for gating until the feature is stable.

Generated by Coder Agents on behalf of @ssncferreira

@github-actions

Copy link
Copy Markdown

Docs preview

📖 View docs preview for docs/reference/api/schemas.md

@ssncferreira ssncferreira force-pushed the ssncferreira/ai-gateway-cost-control-experiment branch from 4104bdb to 8cf8abf Compare June 16, 2026 08:06
@ssncferreira ssncferreira changed the title feat(codersdk): add ai-gateway-cost-control experiment flag feat: add ai-gateway-cost-control experiment flag Jun 16, 2026
@ssncferreira ssncferreira force-pushed the ssncferreira/ai-gateway-cost-control-experiment branch from 8cf8abf to 01e5ee6 Compare June 16, 2026 08:11
Add the ai-gateway-cost-control experiment to gate new cost control
endpoints and upcoming UI behind an explicit opt-in flag.

Only the /users/{user}/ai/budget endpoints are gated since the
/organizations/{org}/groups/{group}/ai/budget endpoints were already
released in v2.34.0.
@ssncferreira ssncferreira force-pushed the ssncferreira/ai-gateway-cost-control-experiment branch from 01e5ee6 to 6fab966 Compare June 16, 2026 08:13
@ssncferreira ssncferreira marked this pull request as ready for review June 16, 2026 08:14

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread enterprise/coderd/coderd.go Outdated
@ssncferreira ssncferreira merged commit 12d7ad6 into main Jun 16, 2026
34 checks passed
@ssncferreira ssncferreira deleted the ssncferreira/ai-gateway-cost-control-experiment branch June 16, 2026 09:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants